﻿// $routeParams - give us access to the Parameters in the URL/Address
myApp.controller('DetailsController', ['$scope', 'MoviesService', '$routeParams', function ($scope, MoviesService, $routeParams) {

    // greeting...
    $scope.greeting = "marahaba!!!!"

    // grab the id (array index, 0-10) from routeParams
    $scope.mId = $routeParams.movieId;

    // Movie Object... grabs the object out of the Array
    $scope.movieDetails = MoviesService.movies[$scope.mId];

    /// API, IMDB - list off all actors & producers
}]);